package com.wang.friend.domain.question.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Setter
@Getter
@JsonInclude(JsonInclude.Include.NON_NULL)//如果返回的时候有的属性为空,则不返回该属性
public class QuestionVO {

    @Schema(description = "题目id")
    @JsonSerialize(using = ToStringSerializer.class)//防止Long型被截断,所以转换为String
    private Long questionId;

    @Schema(description = "题目标题")
    private String title;

    @Schema(description = "难度")
    private Integer difficult;

}
